<?php
/*
 * File Adres.php for project Rijlesplanner.nl
 * Created on Jan 21, 2008 at 11:02:38 PM by Ivar Pruijn
 */

class Adres {
  
	// Properties:
	private $Straatnaam;
	private $Huisnummer;
	private $Toevoeging;
	private $Postcode;
	private $Plaats;
	private $Land;

	// Methods:

	/**
	 * void __construct ()
	 * This is the constructor method for the User class.
	 */
	public function __construct() {
   	}
   	
   	public function Adres(array $atts=NULL) {
		$this->ConstructFromArray($atts);
	}
	
	public function getStraatnaam() {
	  return $this->Straatnaam;
	}

	public function setStraatnaam($newVal) {
		$this->Straatnaam = $newVal;
	}

	public function getHuisnummer() {
	  return $this->Huisnummer;
	}

	public function setHuisnummer($newVal) {
		$this->Huisnummer = $newVal;
	}

	public function getToevoeging() {
	  return $this->Toevoeging;
	}

	public function setToevoeging($newVal) {
		$this->Toevoeging = $newVal;
	}

	public function getPostcode() {
	  return $this->Postcode;
	}

	public function setPostcode($newVal) {
		$this->Postcode = $newVal;
	}

	public function getPlaats() {
	  return $this->Plaats;
	}

	public function setPlaats($newVal) {
		$this->Plaats = $newVal;
	}

	public function getLand() {
	  return $this->Land;
	}

	public function setLand($newVal) {
		$this->Land = $newVal;
	}

	/**
	 * void ConstructFromArray ([array attributes])
	 * This method, if an array is given as the argument, will
	 * create properties in the current object named after the
	 * keys of the array, and set the properties to the corresponding
	 * values from the array.
	 */
	private function ConstructFromArray (array $atts=NULL) {
		if (is_array($atts)) {
			while (list($key, $value) = each($atts)) {
				$this->$key = $value;
			}
		}
	}

	public function __destruct() {
		global $logger;
   	}
   	
   	public function __toString() {
        return $this->Straatnaam." ".$this->Huisnummer." ".$this->Toevoeging.", ".$this->Postcode.", ".$this->Plaats.", ".$this->Land;
    }
}
?>